home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr25 / stdapp.zip / STDAPPU.H < prev    next >
Text File  |  1993-03-05  |  3KB  |  80 lines

  1. #ifndef INCL_STDAPP_U
  2. #define INCL_STDAPP_U
  3.  
  4.  
  5. #ifndef API_SUCCESS
  6. #define API_SUCCESS   1
  7. #endif
  8.  
  9. #ifndef API_FAILED
  10. #define API_FAILED    0
  11. #endif
  12.  
  13.  
  14. #define STDAPP_PTR_INDEX                  4
  15. #define STDAPP_IDR_WIN                 9000      // resource identifier
  16. #define STDAPP_IDR_WIN_BITMAP          9000      // resource identifier
  17.  
  18. // Services Rendered
  19. #define STDAPP_SERVICE_HELP          0x00000001L
  20. #define STDAPP_SERVICE_HPS           0x00000002L
  21. #define STDAPP_SERVICE_RGB           0x00000004L
  22. #define STDAPP_SERVICE_DEVRES        0x00000008L
  23. #define STDAPP_SERVICE_CONFIRM_EXIT  0x00000010L
  24.  
  25.  
  26. // *  Standard Help Menu item ids                                               *
  27.  
  28. #define STDAPP_HELP_TABLE                          9999
  29. #define STDAPP_SUBTABLE                            9998
  30.  
  31. #define STDAPP_IDM_HELP                            9997
  32. #define STDAPP_IDM_HELPINDEX                       9996
  33. #define STDAPP_IDM_HELPGENERAL                     9995
  34. #define STDAPP_IDM_HELPKEYS                        9994
  35. #define STDAPP_IDM_HELPUSINGHELP                   9993
  36.  
  37. // * Standard Help menu panels
  38. #define STDAPP_PANEL_HELP                          9992
  39. #define STDAPP_PANEL_HELPHELPFORHELP               9991
  40. #define STDAPP_PANEL_HELPEXTENDED                  9990
  41. #define STDAPP_PANEL_HELPKEYS                      9989
  42. #define STDAPP_PANEL_HELPINDEX                     9988
  43.  
  44. // *  Main window help panels
  45. #define STDAPP_PANEL_MAIN                          9987
  46.  
  47. // Main window exit menu item
  48. #define STDAPP_IDM_EXIT                            9986
  49.  
  50.  
  51.  
  52. //  Stringtable ids
  53. #define STDAPP_IDS_WIN_APPNAME       1
  54. #define STDAPP_IDS_WIN_CLASSNAME     2
  55. #define STDAPP_IDS_WIN_TITLE         3
  56. #define STDAPP_IDS_HELPLIBRARYNAME   4
  57. #define STDAPP_IDS_HELPWINDOWTITLE   5
  58. #define STDAPP_IDS_TITLEBARSEPARATOR 6
  59.  
  60.  
  61. typedef struct tag_PUBSTDAPP * PPUBSTDAPP;
  62. typedef struct tag_PUBSTDAPP
  63.   {
  64.   PVOID      pv;
  65.   HPS        ( * APIENTRY pfnQueryHps      )  ( PPUBSTDAPP pPubStdApp );
  66.   HAB        ( * APIENTRY pfnQueryHab      )  ( PPUBSTDAPP pPubStdApp );
  67.   HWND       ( * APIENTRY pfnQueryFrame    )  ( PPUBSTDAPP pPubStdApp );
  68.   HWND       ( * APIENTRY pfnQueryClient   )  ( PPUBSTDAPP pPubStdApp );
  69.   BOOL       ( * APIENTRY pfnMsgLoop       )  ( PPUBSTDAPP pPubStdApp );
  70.   BOOL       ( * APIENTRY pfnQueryDevColor )  ( PPUBSTDAPP pPubStdApp, PULONG pulColorPlanes, PULONG pulColorBitcount );
  71.   BOOL       ( * APIENTRY pfnQueryDevRes   )  ( PPUBSTDAPP pPubStdApp, PULONG pulXRes, PULONG pulYRes );
  72.   PPUBSTDAPP ( * APIENTRY pfnDelete        )  ( PPUBSTDAPP pPubStdApp );
  73.   }PUBSTDAPP;
  74.  
  75.  
  76. PPUBSTDAPP  APIENTRY NewStdApp( PVOID pvUserProc, ULONG flExclude,
  77.                                 ULONG flServices );
  78.  
  79. #endif
  80.